<template>
    <div></div>
</template>
<script>
import qs from 'qs';
import { instance } from '@/static/js/axiosTool'; 
import util from '@/libs/util'
export default {
    name:'List',
    data(){
        return {
            API_URL:window.API_Config.dangdang.API_URL,
            dateTimerange:'',
            mediaId:'',
            dataSource:[]
        }
    },
    created(){
        this.$data.mediaId=this.$route.params.id;
        console.log('mediaId',this.$data.mediaId);
        
    },
    mounted() {
        
        this.getList();        
        
    },
    watch: {
        mediaId: {
            handler(newVal) {
                console.log('newVal',newVal)
            },
            deep: true
        }
    },
    methods:{
        getList(){
            
            let _this=this;
            let params={
                action: 'getPcMediaInfo',
                consumeType: 1,
                platform: 3,
                deviceType: 'Android',
                deviceVersion: '5.0.0',
                channelId: 70000,
                platformSource: 'DDDS-P',
                fromPaltform: 'ds_android',
                deviceSerialNo: 'html5',
                clientVersionNo: '5.8.4',
                epubID: _this.$data.mediaId,
                token: '',
                wordSize: 2,
                style: 2
            }
            console.log('params',params);
            this.$xhr('api.go',params).then((res)=>{
                console.log('XMLHttpRequest',res)
            })
            
        }
    }
}
</script>
